package com.yfy.model.mapper;

import com.yfy.model.entity.UserAuthority;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * @Author yfy2001
 * @date 2022/11/16 9:52
 */
@Mapper
public interface UserAuthorityMapper {
    /**
     * 新增用户权限关联，为新用户赋予基础权限
     * @param userAuthority
     */
    @Insert("INSERT INTO t_user_authority (creator,modifier,gmt_created,gmt_modified,is_deleted,user_id,authority_id)" +
            " VALUES (#{creator}, #{modifier},#{gmtCreated},#{gmtModified},#{isDeleted},#{userId},#{authorithId})")
    public void addAuthority(UserAuthority userAuthority);
}
